-- GENERATED SPELL FOR [Terrorclaw] --


function spell0_20477(pUnit, Event) --@Cleave,n/a--
pUnit:FullCastSpellOnTarget(40504,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_20477', 557, 1)
end

function Sorts_20477(pUnit, Event)
local choix_sorts_20477 = math.random(0, 0)
if choix_sorts_20477 == 0 then
pUnit:RegisterEvent('spell0_20477', 1, 1)
end
end

function mob20477_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_20477', math.random(1500, 3000), 1)
end

function mob20477_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob20477_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob20477_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(20477, 1, 'mob20477_Action')
RegisterUnitEvent(20477, 2, 'mob20477_Leave')
RegisterUnitEvent(20477, 3, 'mob20477_Kill')
RegisterUnitEvent(20477, 4, 'mob20477_Die')
